import request from '../utils/request'
export function list(params) {
  return request({
    url:'/admin/parking/list',
    method:'get',
    params:params
  })
}
export function save(data,params) {
  return request({
    url:'/admin/parking/save',
    method:'post',
    data:data,
    params:params,
  })
}
export function update(data,params) {
  return request({
    url:'/admin/parking/update',
    method:'post',
    data:data,
    params:params,
  })
}
export function del(id) {
    return request({
      url: '/admin/parking/del/' + id,
      method: 'post'
    })
  }
export function delExit(id) {
    return request({
      url: '/admin/parking/delExit/' + id,
      method: 'post'
    })
  }
export function find(id) {
    return request({
      url: '/admin/parking/find/' + id,
      method: 'get'
    })
  }
  
export function parkingRecordlist(params) {
    return request({
      url: '/admin/parkingRecord/list',
      method: 'get',
      params:params
    })
  }
export function gateControl(params) {
    return request({
      url: '/smartParking/gateControl',
      method: 'post',
      params:params
    })
  }
export function createImage(params) {
    return request({
      url: '/zxing/createImage',
      method: 'get',
      params:params
    })
  }
  
